package com.tt.service;

import com.tt.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MockService2 {

    @Autowired
    private MockServiceBase mockService1;

    public int add114514(int x) {
        return x + mockService1.mockTestInt();
    }

    public String add114514(String x) {
        return x + mockService1.MockTestString();
    }

    public User add114514(User x) {
        User user = mockService1.MockTestUser();
        user.setAge(user.getAge()+x.getAge());
        user.setName(x.getName()+user.getName());
        return user;
    }



}
